<?php

namespace Modules\Admin\Http\Controllers\Ebooks;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Modules\Common\General\Security\Api\Gateway;
use Modules\Common\Models\AdminLog;
use Modules\Common\Models\Ebooks;
use Modules\Common\Util\Api;
use Modules\Common\Util\Database;


class PutonShelves
{

    /**
     *@Route(path=/api/admin/ebook/puton-shelves  method=put)
    */
    public function index()
    {
        Ebooks::where('id',request('id'))->update(['is_published' => 1]);

        return Api::success();
    }
}